package quq.missq.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.RelativeLayout;

import quq.missq.BaseActivity;
import quq.missq.R;

/**
 * Created by wcx on 2015/9/18.
 */
public class SettingActivity extends BaseActivity implements View.OnClickListener {
    private RelativeLayout rl_setting1;
    private RelativeLayout rl_setting3;
    private RelativeLayout rl_setting4;
    private RelativeLayout rl_setting5;
    private Intent intent;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_setting);
        initView();
        initData();
        initListener();
    }

    private void initListener() {
        rl_setting1.setOnClickListener(this);
        rl_setting3.setOnClickListener(this);
        rl_setting4.setOnClickListener(this);
        rl_setting5.setOnClickListener(this);
    }

    private void initData() {
    }

    private void initView() {
        rl_setting1 = (RelativeLayout) findViewById(R.id.rl_setting1);
        rl_setting3 = (RelativeLayout) findViewById(R.id.rl_setting3);
        rl_setting4 = (RelativeLayout) findViewById(R.id.rl_setting4);
        rl_setting5 = (RelativeLayout) findViewById(R.id.rl_setting5);
        findViewById(R.id.back).setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.rl_setting1:
                intent = new Intent();
                intent.setClass(this,CommonSettingActivity.class);
                startActivity(intent);
                break;
            case R.id.rl_setting3:
                intent = new Intent();
                intent.setClass(this,AboutUSActivity.class);
                startActivity(intent);
                break;
            case R.id.rl_setting4:
                intent = new Intent();
                intent.setClass(this,IdeaFeedBackActivity.class);
                startActivity(intent);
                break;
            case R.id.rl_setting5:
                intent = new Intent();
                intent.setClass(this,CommonQuesActivity.class);
                startActivity(intent);
                break;
            case R.id.back:
                finish();
                break;
        }
    }
}
